package com.kara.woodAgent.common.model;



import com.kara.woodAgent.common.enums.ResultCodeEnum;

import java.util.HashMap;

/**
 * @author szht
 * @version 1.0
 * @project tiny-admin
 * @description
 * @date 2024/10/11 11:23:26
 */
public class ResultBase extends Result<HashMap<String,Object>>{


	public ResultBase(RuntimeException e) {
		super(e);
	}

	public ResultBase(String msg, int code, HashMap<String, Object> data) {
		super(msg, code, data);
	}


	public static ResultBase create(){
		return new ResultBase("success", ResultCodeEnum.SUCCESS.getCode(),new HashMap<>());
	}

	public void addData(String k,Object v){
		this.getData().put(k,v);
	}

}
